package com.study.yangfei.mystudy.base;

import android.util.Log;

/**
 * Created by yangfei on 2016/11/6.
 */

public class BaseTools {
    public static String Tag(Object obj){
        return obj.getClass().getSimpleName();
    }

    public static void Logd(Object obj,String str){
        Log.d(Tag(obj),str);
    }

    public static void printClassFunc(Object obj){
        Class<?>[] funcs = obj.getClass().getInterfaces();
        for(Class<?> func:funcs){
            Logd(obj,func.getName());
        }
    }
}
